package com.studentmanage.framework.domain.base.response;


import com.studentmanage.framework.domain.common.response.ResultCode;

public enum ClassCode implements ResultCode {
    ADD_FAIL(false,2001,"操作失败！请传入完整的参数"),
    SPECIALIZE_IS_NOT_EXIST(false,2002,"操作失败！不存在该专业"),
    CLASS_IS_EXIST(false,2003,"操作失败！已存在该班级名称");

    //操作是否成功
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;
    private ClassCode(boolean success, int code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public boolean success() {
        return success;
    }
    public int code() {
        return code;
    }
    public String message() {
        return message;
    }
}
